# -*- encoding: utf-8 -*-
'''

Use cv2 HOG to detect pedestrian.

@File    :   pedestrian.py
@Time    :   2021/11/11 17:00:23
@Author  :   Yangshuo He
@Contact :   sugarhe58@gmail.com
'''

from __future__ import print_function
# from picamera.array import PiRGBArray
# from picamera import PiCamera
import argparse
import warnings
import datetime
import imutils
from imutils.object_detection import non_max_suppression
from imutils import paths
import json
import time
import cv2


# initialize the HOG descriptor/person detector
hog = cv2.HOGDescriptor()
hog.setSVMDetector(cv2.HOGDescriptor_getDefaultPeopleDetector())
